﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCompanyName.AbpZeroTemplate.Prm.Project
{
    public class TopicAttachment : FullAuditedEntity<int>
    {

        /// <summary>
        /// 提问ID or 回复ID
        /// </summary>
        public virtual int HostId
        {
            set;
            get;
        }

        /// <summary>
        /// 文件名称
        /// </summary>
        public virtual string Name
        {
            set;
            get;
        }

        /// <summary>
        /// 文件大小
        /// </summary>
        public virtual decimal Size
        {
            set;
            get;
        }

        /// <summary>
        /// 文件路径
        /// </summary>
        public virtual string FullPath
        {
            set;
            get;
        }

        /// <summary>
        /// 文档扩展名
        /// </summary>
        public virtual string Extension
        {
            set;
            get;
        }

        public virtual TopicHost TopicHost { get; set; }
    }
    public enum TopicHost
    {
        提问 = 10,
        回复 = 20
    }
}
